//
//  XTCornerBtn.swift
//  XTMuteOpen
//
//  Created by bushAK on 2024/1/22.
//

import UIKit

class XTCornerBtn: UIButton {

    override init(frame: CGRect) {
        super.init(frame: frame)
        initUI()
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
 
    override   func awakeFromNib() {
        super.awakeFromNib()
        initUI()
    }
    
    func initUI() {
        setTitleColor(UIColor.white, for: .normal)
  
        layer.masksToBounds = true
        layer.cornerRadius = 10
        backgroundColor = UIColor.getBase()

        titleLabel?.font = UIFont.boldSystemFont(ofSize: 16)

    }
}
